package com.czl.lunt.service;

import com.czl.lunt.model.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ArticleService {
    //发布帖子功能
    @Transactional//添加事务功能
    void create(Article article);

    List<Article> selectAll();

    List<Article> selectAllByBoardId( Long boardId);

    Article selectDetailById(Long id);

    public void modify(Long id, String title, String content);

    Article selectById(Long id);
    //点赞
    void thumbsUpById(Long id);

    void addOneReplyById(Long id);

    @Transactional
    void deleteById(Long id);


}
